package com.wg.web_app.domin.response;

import com.wg.web_app.dao.table.TableNumber;

public class PhoneNumber {
	public int id;
	public String detail;
	public String number;

	public PhoneNumber() {

	}

	public PhoneNumber(int id, String detail, String number) {
		this.id = id;
		this.detail = detail;
		this.number = number;
	}

	public PhoneNumber(TableNumber data) {
		this.id = data.getId();
		this.detail = data.getTag();
		this.number = data.getNumber();
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("{id:");
		sb.append(id);
		sb.append(",detail:");
		sb.append(detail);
		sb.append(",number:");
		sb.append(number);
		sb.append("}");

		return sb.toString();
	}

}
